package com.andy.war.vo;

import java.util.ArrayList;
import java.util.List;

import com.andy.war.enums.SkillScope;
import com.andy.war.obj.battle.Army;

public class SkillVO {

	private int id;
	private String name;
	
	private List<SkillEffectVO> skillEffect;
	private SkillScope skillScope;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public void doSkill(Army attacker,Army defender){
		//攻击范围
		List<Army> targets = getTargets(attacker,defender);
		
		
	}
	private List<Army> getTargets(Army attacker, Army defender) {
		List<Army> results = new ArrayList<Army>();
		switch (skillScope) {
		case oneEnemy:
			results.add(defender);
			break;
		case oneOur:
			results.add(attacker);
			break;

		default:
			break;
		}
		return results;
	}
	
	
	
	
}
